package com.gobuy.goods.feign;

import com.gobuy.common.pojo.Result;
import com.gobuy.goods.pojo.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Gaozexi on 2020/6/10 23:38
 * Step by Step  and Stand on,  You Are The Best Investment!
 */
@FeignClient("goods")
public interface CategoryFeign {
    /***
     * 根据ID查询数据  对外暴露的feign接口
     * @param id
     * @return
     */
    @GetMapping("/category/{id}")
     Result<Category> findById(@PathVariable("id") Integer id);
}
